package com.douyin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("subtitles")
public class Subtitle {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("video_id")
    private Long videoId;

    @TableField(value = "language", fill = FieldFill.INSERT)
    private String language = "zh-CN";

    @TableField("content")
    private String content; // JSON格式存储时间轴和文本

    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status = 0; // 0-生成中 1-完成 2-失败

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
